<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: 17214
  Date: 2022/8/27
  Time: 10:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>编辑爱车</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/css/style.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/css/datepicker.css"/>
</head>
<body>
<div class="main_box">
    <div class="cont_box editpro_box">
        <form action="${pageContext.request.contextPath}/hyxx/editCar" method="post" id="user_form">
            <ul class="addpro_box adduser_box">
                <input type="hidden" name="c_carnumber" value="${oneCar.c_carnumber}"/>
                <li>
                    <label>车牌号：</label>
                    <input type="text" value="${oneCar.c_ipnumber}" placeholder="请输入车牌号码" name="c_ipnumber" required data-rule-isCarNo="true" data-msg-required="车牌号码不能为空"/>
                </li>
                <li>
                    <label>行驶里程：</label>
                    <input type="text" value="${oneCar.c_mileage}" placeholder="请输入行驶里程" name="c_mileage" required data-rule-mileage="true" data-msg-required="行驶里程不能为空"/>
                </li>
                <li>
                    <label>保险到期日：</label>
                    <input type="text" value="${oneCar.c_iedate}" class="choose_date" placeholder="请选择保险到期日" name="c_iedate" readonly required data-msg-required="保险到期日不能为空"/>
                </li>
                <li>
                    <label>车品牌型号：</label>
                    <div class="select_group" id="carmodel">
                        <select name="c_carname" class="c_carname" required data-msg-required="车品牌型号不能为空">
                            <option value="${oneCar.c_carname}">${oneCar.c_carname}</option>
                        </select>
                        <select name="c_model" class="c_model" required data-msg-required="车品牌型号不能为空">
                            <option value="${oneCar.c_model}">${oneCar.c_model}</option>
                        </select>
                        <select name="c_enumber" class="c_enumber" required data-msg-required="车品牌型号不能为空">
                            <option value="${oneCar.c_enumber}">${oneCar.c_enumber}</option>
                        </select>
                        <select name="c_fnumber" class="c_fnumber" required data-msg-required="车品牌型号不能为空">
                            <option value="${oneCar.c_fnumber}">${oneCar.c_fnumber}</option>
                        </select>
                    </div>
                </li>
            </ul>
            <div class="probtn_box clearfix">
                <input type="submit" value="编辑爱车" class="btn blue_btn"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="${pageContext.request.contextPath}/admin/car/js/jquery-2.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.form.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.cxselect.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/other.js"></script>
<script>
    $(function(){
        $("body").other({formId:"#user_form",formUrl:"#"});//formUrl 表单请求地址,linkHref 请求成功后跳转地址，此页面不需要，已删除
        $("#carmodel").cxSelect({
            url: "js/carModel.json",
            selects: ["c_carname", "c_model", "c_enumber", "c_fnumber"],
            emptyStyle: "none"
        });
    });
</script>
</body>
</html>

